<?
if(isset($_GET[clear])){
$db->UPDATE("UPDATE `".tablepre."session` SET `v`='' WHERE (`uid`='".$checkmember[0][2]."')");  //更新数组
$db->DELETE("DELETE FROM `".tablepre."session` WHERE `uid`='".$checkmember[0][2]."' and type = '2'");
header("Location: $nowpage");
exit;
}
?><style>
#menu{ background: #ffffff;}
#menu ul{ margin:0px; padding:0px;}
#menu li{ list-style-type:none; margin:3px 0 3px 0;}
#menu{ width:97%;}
#menu a:link {
	color: #C60;
	text-decoration: none;
}
#menu a:visited {
	color: #000;
	text-decoration: none;
}
#menu a:hover {
	color: #000;
	text-decoration: none;
}
#menu a:active {
	color: #000;
	text-decoration: none;
}
#topshow {
	margin:0 0 15px 0 ;}
#topshow a:link {
	color: #C60;
	text-decoration: none;
}
#topshow a:visited {
	color: #000;
	text-decoration: none;
}
#topshow a:hover {
	color: #000;
	text-decoration: none;
}
#topshow a:active {
	color: #000;
	text-decoration: none;
}


#f{
	font-size:14px; border-bottom:#666 solid 1px; padding:0 0 3px 0; margin:0 0 3px 0; font-weight:bold; background:#FFF;}
	.iframe{ width:920px; }
</style><div class="t_pic"></div>
  <div style="margin:0 10px 0 10px;"><div id="topshow"><img src="images/Mono_085.png" style="float:left; margin:0 5px 0 0;" /><div id="show"><? 
  $check_exist = $db->select("SELECT uid,v FROM `".tablepre."session` where uid = '".$checkmember[0][2]."'");
  if($check_exist[0][1]==null){echo CART_NOTE_EMPTY;}else{
  $exist_explode=explode(',',substr($check_exist[0][1],1)); //拆分数组
  echo @arr_show_li(2,CART_NOTE_COUNT_TEXT,count($exist_explode));}
  ?></div><div style="float:left;">
<a href="user_cart.php?iframe&<? echo rand(999,99999)?>" rel="facebox[.iframe]"><img src="images/<? echo parameters($con1=12); ?>_ckkwc.jpg" /></a><br />
    <a href="?clear" onclick="return confirm('<? echo CART_ARE_YOU_SURE;?>')"><img src="images/<? echo parameters($con1=12); ?>_qkkwc.jpg" /></a></div>
  <div id="clear"></div>
  
  </div>
<div style="text-align:center; border-bottom:#CCC dotted 1px; margin-bottom:3px; padding-bottom:3px;"><? echo CATALOGUE_TITLE;?></div>
<div id="menu">
<ul>
<?

$arr_list = $db->select("SELECT * FROM `".tablepre."stock_type` order by rank");
      function fenlei_list($f_id=0,$lever=1)   
{   
    global $arr_list;   
    if($f_id == 0)    
        $lever=1;   
    else   
        $lever +=1;   
    for($i=0;$i<count($arr_list);$i++)   
    {   
        if($arr_list[$i][3]==$f_id)   
        {   
		if($arr_list[$i][3]==0){$classcolor='odd_row';}elseif($arr_list[$i][3]==1){$classcolor='st1_row';}elseif($arr_list[$i][3]==2){$classcolor='st2_row';}elseif($arr_list[$i][3]==3){$classcolor='st3_row';}elseif($arr_list[$i][3]==4){$classcolor='st4_row';}else{$classcolor='even_row';}
		//$classcolor=$arr_list[$i][3]==0?'odd_row':'even_row';
		$code=$lever==1?'id="f"':''; $code2=$lever<>1?'●':'';
			echo '<li '.$code.'>'.@str_repeat("&nbsp;&nbsp;&nbsp;&nbsp;",$lever-2).$code2.'<a href="user_stock_list.php?tid='.$arr_list[$i][0].'">'.$arr_list[$i][1].'
			</a></li>';
            fenlei_list($arr_list[$i][0],$lever);   
        }      
    }      
}  

			echo fenlei_list();
			
?>
</ul>
</div>
    <div style="border-top:#999 dotted 1px; margin-top:5px; padding-top:5px;">powered by:Jeiry<br /></div>
    </div>
    <div class="b_pic"></div>